/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.participantsServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.participantsServiceSoap
 * @generated
 */
public class participantsSoap implements Serializable {
	public static participantsSoap toSoapModel(participants model) {
		participantsSoap soapModel = new participantsSoap();

		soapModel.setID(model.getID());
		soapModel.setUserid(model.getUserid());
		soapModel.setUsername(model.getUsername());

		return soapModel;
	}

	public static participantsSoap[] toSoapModels(participants[] models) {
		participantsSoap[] soapModels = new participantsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static participantsSoap[][] toSoapModels(participants[][] models) {
		participantsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new participantsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new participantsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static participantsSoap[] toSoapModels(List<participants> models) {
		List<participantsSoap> soapModels = new ArrayList<participantsSoap>(models.size());

		for (participants model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new participantsSoap[soapModels.size()]);
	}

	public participantsSoap() {
	}

	public long getPrimaryKey() {
		return _ID;
	}

	public void setPrimaryKey(long pk) {
		setID(pk);
	}

	public long getID() {
		return _ID;
	}

	public void setID(long ID) {
		_ID = ID;
	}

	public String getUserid() {
		return _Userid;
	}

	public void setUserid(String Userid) {
		_Userid = Userid;
	}

	public String getUsername() {
		return _Username;
	}

	public void setUsername(String Username) {
		_Username = Username;
	}

	private long _ID;
	private String _Userid;
	private String _Username;
}